﻿using Com.Ctrip.Framework.Apollo;
using Microsoft.Extensions.Configuration;
using System.Configuration;
using System.Web.Http;

namespace Web.API._471
{
    public class WebApiApplication : System.Web.HttpApplication
    {
        public static IConfiguration Configuration { get; private set; }
        protected void Application_Start()
        {
            Configuration = new Microsoft.Extensions.Configuration.ConfigurationBuilder()
              .AddApollo(ConfigurationManager.AppSettings["Apollo.AppId"], ConfigurationManager.AppSettings["Apollo.MetaServer"])
              .AddDefault()
              .Build();
            GlobalConfiguration.Configure(WebApiConfig.Register);

        }
    }
}
